// @ts-nocheck
import React from 'react';
import { ApplyPluginsType } from 'C:/Users/10476/Desktop/6-25/项目代码/myapp/node_modules/@umijs/runtime';
import * as umiExports from './umiExports';
import { plugin } from './plugin';

export function getRoutes() {
  const routes = [
  {
    "path": "/",
    "component": require('@/layouts/index.tsx').default,
    "routes": [
      {
        "path": "/archives",
        "exact": true,
        "component": require('@/pages/archives/index.tsx').default
      },
      {
        "path": "/archives",
        "exact": true,
        "component": require('@/pages/archives.tsx').default
      },
      {
        "path": "/article/:id",
        "exact": true,
        "component": require('@/pages/article/[id].tsx').default
      },
      {
        "path": "/category/be",
        "exact": true,
        "component": require('@/pages/category/be/index.tsx').default
      },
      {
        "path": "/category/front",
        "exact": true,
        "component": require('@/pages/category/front/index.tsx').default
      },
      {
        "path": "/category/java",
        "exact": true,
        "component": require('@/pages/category/java/index.tsx').default
      },
      {
        "path": "/category/leetcode",
        "exact": true,
        "component": require('@/pages/category/leetcode/index.tsx').default
      },
      {
        "path": "/category/linux",
        "exact": true,
        "component": require('@/pages/category/linux/index.tsx').default
      },
      {
        "path": "/category/news",
        "exact": true,
        "component": require('@/pages/category/news/index.tsx').default
      },
      {
        "path": "/category/reading",
        "exact": true,
        "component": require('@/pages/category/reading/index.tsx').default
      },
      {
        "path": "/",
        "exact": true,
        "component": require('@/pages/index.tsx').default
      },
      {
        "path": "/knowledge",
        "exact": true,
        "component": require('@/pages/knowledge/index.tsx').default
      },
      {
        "path": "/knowledge/:kid",
        "exact": true,
        "component": require('@/pages/knowledge/[kid]/index.tsx').default
      },
      {
        "path": "/knowledge/:kid/:id",
        "exact": true,
        "component": require('@/pages/knowledge/[kid]/[id].tsx').default
      },
      {
        "path": "/page/:id",
        "exact": true,
        "component": require('@/pages/page/[id].tsx').default
      }
    ]
  }
];

  // allow user to extend routes
  plugin.applyPlugins({
    key: 'patchRoutes',
    type: ApplyPluginsType.event,
    args: { routes },
  });

  return routes;
}
